class ActualitiesController < ApplicationController
  before_filter :authorize, :except => :index
  # GET /actualities
  # GET /actualities.xml
  def index
    @actualities = Actuality.all

    respond_to do |format|
      format.html # index.html.erb
      format.xml  { render :xml => @actualities }
      format.json { render :json => @actualities}
      format.atom { render :atom => @actualities}
    end
  end

  # GET /actualities/1
  # GET /actualities/1.xml
  def show
    @actuality = Actuality.find(params[:id])

    respond_to do |format|
      format.html # show.html.erb
      format.xml  { render :xml => @actuality }
    end
  end
end
